home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Encarta World Atlas 1999 / Encarta World 99 Install Disk.iso / evg / Flights / SoundsNA.js < prev    next >
Encoding:
JavaScript  |  1998-09-01  |  10.1 KB  |  218 lines

  1. /*****************************************************************************
  2.  SoundsNA.js
  3.  
  4.  Encarta Virtual Globe 1999
  5.  
  6.  (c) Copyright Microsoft Corporation 1998
  7.  
  8.  Populates the sound table for North America. The sound table is comprised
  9.  of a Lat,Long location where the sound is associated with, and an index
  10.  number into the Audio Man control which has the path to the actual sound 
  11.  file. See FlightSounds.xls for the table of sound file and Lat,Long 
  12.  matchings.
  13.  
  14.  Also includes fusion related variables declarations and functions
  15.  because the number of fusion nodes vary between Fly files.
  16.  
  17.  This file is to be included by FlyNAm.htm
  18.  
  19.  Owner = WHsu
  20. *****************************************************************************/
  21. var g_numFusionSrcNodes = 15;
  22. var g_FusionSrcNodes = new Array(g_numFusionSrcNodes);            // node object for Fusion URLWav
  23. var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes);    // if set, node loaded
  24.  
  25. function LoadFusionMedia()
  26. {
  27.     var i;
  28.     for ( i=0; i < g_numFusionSrcNodes; i++ )
  29.     {
  30.         g_fFusionSrcNodeLoaded[i] = false;
  31.     }
  32.     g_FusionSrcNodes[0]  = MediaGraph.Nodes("FusionSrcA");
  33.     g_FusionSrcNodes[1]  = MediaGraph.Nodes("FusionSrcB");
  34.     g_FusionSrcNodes[2]  = MediaGraph.Nodes("FusionSrcC");
  35.     g_FusionSrcNodes[3]  = MediaGraph.Nodes("FusionSrcD");
  36.     g_FusionSrcNodes[4]  = MediaGraph.Nodes("FusionSrcE");
  37.     g_FusionSrcNodes[5]  = MediaGraph.Nodes("FusionSrcF");
  38.     g_FusionSrcNodes[6]  = MediaGraph.Nodes("FusionSrcG");
  39.     g_FusionSrcNodes[7]  = MediaGraph.Nodes("FusionSrcH");
  40.     g_FusionSrcNodes[8]  = MediaGraph.Nodes("FusionSrcI");
  41.     g_FusionSrcNodes[9] = MediaGraph.Nodes("FusionSrcL");  // no J or K
  42.     g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcM");
  43.     g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcN");
  44.     g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcO");
  45.     g_FusionSrcNodes[13] = MediaGraph.Nodes("FusionSrcP");
  46.     g_FusionSrcNodes[14] = MediaGraph.Nodes("FusionSrcQ");
  47.  
  48.     MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
  49.     MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
  50.     MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
  51.     MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
  52.     MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
  53.     MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
  54.     MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
  55.     MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
  56.     MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
  57.     MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
  58.     MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
  59.     MediaGraph.Nodes("FusionSrcN").LoadMedia(false);
  60.     MediaGraph.Nodes("FusionSrcO").LoadMedia(false);
  61.     MediaGraph.Nodes("FusionSrcP").LoadMedia(false);
  62.     MediaGraph.Nodes("FusionSrcQ").LoadMedia(false);
  63. }
  64.  
  65. g_SoundTable[g_Continent_NA] = new Array(30);
  66.  
  67. g_SoundTable[g_Continent_NA][0] = new Array(3);
  68. g_SoundTable[g_Continent_NA][1] = new Array(3);
  69. g_SoundTable[g_Continent_NA][2] = new Array(3);
  70. g_SoundTable[g_Continent_NA][3] = new Array(3);
  71. g_SoundTable[g_Continent_NA][4] = new Array(3);
  72. g_SoundTable[g_Continent_NA][5] = new Array(3);
  73. g_SoundTable[g_Continent_NA][6] = new Array(3);
  74. g_SoundTable[g_Continent_NA][7] = new Array(3);
  75. g_SoundTable[g_Continent_NA][8] = new Array(3);
  76. g_SoundTable[g_Continent_NA][9] = new Array(3);
  77. g_SoundTable[g_Continent_NA][10] = new Array(3);
  78. g_SoundTable[g_Continent_NA][11] = new Array(3);
  79. g_SoundTable[g_Continent_NA][12] = new Array(3);
  80. g_SoundTable[g_Continent_NA][13] = new Array(3);
  81. g_SoundTable[g_Continent_NA][14] = new Array(3);
  82. g_SoundTable[g_Continent_NA][15] = new Array(3);
  83. g_SoundTable[g_Continent_NA][16] = new Array(3);
  84. g_SoundTable[g_Continent_NA][17] = new Array(3);
  85. g_SoundTable[g_Continent_NA][18] = new Array(3);
  86. g_SoundTable[g_Continent_NA][19] = new Array(3);
  87. g_SoundTable[g_Continent_NA][20] = new Array(3);
  88. g_SoundTable[g_Continent_NA][21] = new Array(3);
  89. g_SoundTable[g_Continent_NA][22] = new Array(3);
  90. g_SoundTable[g_Continent_NA][23] = new Array(3);
  91. g_SoundTable[g_Continent_NA][24] = new Array(3);
  92. g_SoundTable[g_Continent_NA][25] = new Array(3);
  93. g_SoundTable[g_Continent_NA][26] = new Array(3);
  94. g_SoundTable[g_Continent_NA][27] = new Array(3);
  95. g_SoundTable[g_Continent_NA][28] = new Array(3);
  96. g_SoundTable[g_Continent_NA][29] = new Array(3);
  97.  
  98.  
  99. g_SoundTable[g_Continent_NA][0][g_indexLat] = 16;
  100. g_SoundTable[g_Continent_NA][0][g_indexLong] = -88;
  101. g_SoundTable[g_Continent_NA][0][g_indexSound] = 1;        // F172398A    16    -88    172398 Belize
  102.  
  103. g_SoundTable[g_Continent_NA][1][g_indexLat] = 65;
  104. g_SoundTable[g_Continent_NA][1][g_indexLong] = -110;
  105. g_SoundTable[g_Continent_NA][1][g_indexSound] = 2;        // F172418A    65    -110    172418 Canada (Inuit)
  106.  
  107. g_SoundTable[g_Continent_NA][2][g_indexLat] = 50;
  108. g_SoundTable[g_Continent_NA][2][g_indexLong] = -74;
  109. g_SoundTable[g_Continent_NA][2][g_indexSound] = 3;        // F172419A    50    -74    172419 Canada (Quebec)
  110.  
  111. g_SoundTable[g_Continent_NA][3][g_indexLat] = 5;
  112. g_SoundTable[g_Continent_NA][3][g_indexLong] = -74;
  113. g_SoundTable[g_Continent_NA][3][g_indexSound] = 4;        // F172426A    5    -74    172426 Colombia (+)
  114.  
  115. g_SoundTable[g_Continent_NA][4][g_indexLat] = 5;
  116. g_SoundTable[g_Continent_NA][4][g_indexLong] = -74;
  117. g_SoundTable[g_Continent_NA][4][g_indexSound] = 5;        // F172427A    5    -74    172427 Colombia (+)
  118.  
  119. g_SoundTable[g_Continent_NA][5][g_indexLat] = 5;
  120. g_SoundTable[g_Continent_NA][5][g_indexLong] = -74;
  121. g_SoundTable[g_Continent_NA][5][g_indexSound] = 6;        // F172428A    5    -74    172428 Colombia (+)
  122.  
  123. g_SoundTable[g_Continent_NA][6][g_indexLat] = 18;
  124. g_SoundTable[g_Continent_NA][6][g_indexLong] = -71;
  125. g_SoundTable[g_Continent_NA][6][g_indexSound] = 7;        // F172436A    18    -71    172436 Dominican Republic
  126.  
  127. g_SoundTable[g_Continent_NA][7][g_indexLat] = 19;
  128. g_SoundTable[g_Continent_NA][7][g_indexLong] = -73;
  129. g_SoundTable[g_Continent_NA][7][g_indexSound] = 8;        // F172460A    19    -73    172460 Haiti
  130.  
  131. g_SoundTable[g_Continent_NA][8][g_indexLat] = 5;
  132. g_SoundTable[g_Continent_NA][8][g_indexLong] = -62;
  133. g_SoundTable[g_Continent_NA][8][g_indexSound] = 9;        // F172513A    5    -62    172513 Martenique
  134.  
  135. g_SoundTable[g_Continent_NA][9][g_indexLat] = 24;
  136. g_SoundTable[g_Continent_NA][9][g_indexLong] = -103;
  137. g_SoundTable[g_Continent_NA][9][g_indexSound] = 10;        // F172517A    24    -103    172517 Mexico
  138.  
  139. g_SoundTable[g_Continent_NA][10][g_indexLat] = 4;
  140. g_SoundTable[g_Continent_NA][10][g_indexLong] = -61;
  141. g_SoundTable[g_Continent_NA][10][g_indexSound] = 11;        // F172571A    4    -61    172571 Saint Lucia-
  142.  
  143. g_SoundTable[g_Continent_NA][11][g_indexLat] = 21;
  144. g_SoundTable[g_Continent_NA][11][g_indexLong] = -158;
  145. g_SoundTable[g_Continent_NA][11][g_indexSound] = 12;        // F172597A    21    -158    172597 Hawaii (++)
  146.  
  147. g_SoundTable[g_Continent_NA][12][g_indexLat] = 30;
  148. g_SoundTable[g_Continent_NA][12][g_indexLong] = -92;
  149. g_SoundTable[g_Continent_NA][12][g_indexSound] = 13;        // F172598A    30    -92    172598 U.S. (Cajun)
  150.  
  151. g_SoundTable[g_Continent_NA][13][g_indexLat] = 30;
  152. g_SoundTable[g_Continent_NA][13][g_indexLong] = -90;
  153. g_SoundTable[g_Continent_NA][13][g_indexSound] = 14;        // F172599A    30    -90    172599 U.S. (New Orleans)
  154.  
  155. g_SoundTable[g_Continent_NA][14][g_indexLat] = 35;
  156. g_SoundTable[g_Continent_NA][14][g_indexLong] = -85;
  157. g_SoundTable[g_Continent_NA][14][g_indexSound] = 15;        // F172600A    35    -85    172600 U.S. (bluegrass)
  158.  
  159. g_SoundTable[g_Continent_NA][15][g_indexLat] = 33;
  160. g_SoundTable[g_Continent_NA][15][g_indexLong] = -106;
  161. g_SoundTable[g_Continent_NA][15][g_indexSound] = 16;        // F172602A    33    -106    172602 U.S. (Conjunto)
  162.  
  163. g_SoundTable[g_Continent_NA][16][g_indexLat] = 38;
  164. g_SoundTable[g_Continent_NA][16][g_indexLong] = -95;
  165. g_SoundTable[g_Continent_NA][16][g_indexSound] = 17;        // F172603A    38    -95    172603 U.S. (Native Am.)
  166.  
  167. g_SoundTable[g_Continent_NA][17][g_indexLat] = 6;
  168. g_SoundTable[g_Continent_NA][17][g_indexLong] = -65;
  169. g_SoundTable[g_Continent_NA][17][g_indexSound] = 18;        // F172604A    6    -65    172604 Venezuela- (+)
  170.  
  171. g_SoundTable[g_Continent_NA][18][g_indexLat] = 18;
  172. g_SoundTable[g_Continent_NA][18][g_indexLong] = -64;
  173. g_SoundTable[g_Continent_NA][18][g_indexSound] = 19;        // F172605A    18    -64    172605 U.S. Caribbean
  174.  
  175. g_SoundTable[g_Continent_NA][19][g_indexLat] = 24;
  176. g_SoundTable[g_Continent_NA][19][g_indexLong] = -103;
  177. g_SoundTable[g_Continent_NA][19][g_indexSound] = 20;        // F172935A    24    -103    172935 Mexico (mariachi)
  178.  
  179. g_SoundTable[g_Continent_NA][20][g_indexLat] = 42;
  180. g_SoundTable[g_Continent_NA][20][g_indexLong] = -88;
  181. g_SoundTable[g_Continent_NA][20][g_indexSound] = 21;        // F172966A    42    -88    172966 U.S. Chicago blues
  182.  
  183. g_SoundTable[g_Continent_NA][21][g_indexLat] = 48;
  184. g_SoundTable[g_Continent_NA][21][g_indexLong] = -123;
  185. g_SoundTable[g_Continent_NA][21][g_indexSound] = 22;        // F172967A    48    -123    172967 U.S. grunge rock
  186.  
  187. g_SoundTable[g_Continent_NA][22][g_indexLat] = 6;
  188. g_SoundTable[g_Continent_NA][22][g_indexLong] = -65;
  189. g_SoundTable[g_Continent_NA][22][g_indexSound] = 23;        // F172976A    6    -65    172976 Venezuela (+)
  190.  
  191. g_SoundTable[g_Continent_NA][23][g_indexLat] = 12;
  192. g_SoundTable[g_Continent_NA][23][g_indexLong] = -86;
  193. g_SoundTable[g_Continent_NA][23][g_indexSound] = 24;        // F173219A    12    -86    173219 Nicaragua (+)
  194.  
  195. g_SoundTable[g_Continent_NA][24][g_indexLat] = 55;
  196. g_SoundTable[g_Continent_NA][24][g_indexLong] = -102;
  197. g_SoundTable[g_Continent_NA][24][g_indexSound] = 25;        // F173236A    55    -102    173236 Canada
  198.  
  199. g_SoundTable[g_Continent_NA][25][g_indexLat] = 18;
  200. g_SoundTable[g_Continent_NA][25][g_indexLong] = -77;
  201. g_SoundTable[g_Continent_NA][25][g_indexSound] = 26;        // F173238A    18    -77    173238 Jamaica
  202.  
  203. g_SoundTable[g_Continent_NA][26][g_indexLat] = 22;
  204. g_SoundTable[g_Continent_NA][26][g_indexLong] = -78;
  205. g_SoundTable[g_Continent_NA][26][g_indexSound] = 27;        // F547303A    22    -78    547303 Cuba
  206.  
  207. g_SoundTable[g_Continent_NA][27][g_indexLat] = 34;
  208. g_SoundTable[g_Continent_NA][27][g_indexLong] = -97;
  209. g_SoundTable[g_Continent_NA][27][g_indexSound] = 28;        // F555381A    34    -97    555381 U.S. (western swing)
  210.  
  211. g_SoundTable[g_Continent_NA][28][g_indexLat] = 45;
  212. g_SoundTable[g_Continent_NA][28][g_indexLong] = -105;
  213. g_SoundTable[g_Continent_NA][28][g_indexSound] = 29;        // F557070A    45    -105    557070 U.S. (rock music)
  214.  
  215. g_SoundTable[g_Continent_NA][29][g_indexLat] = 62;
  216. g_SoundTable[g_Continent_NA][29][g_indexLong] = -150;
  217. g_SoundTable[g_Continent_NA][29][g_indexSound] = 30;        // F557070A    62    -150    557070 U.S. (rock music)
  218.